<extend name='Index:index'/>
<block name='ad'></block>
<block name='title'></block>
<block name='head'></block>
<block name='floor'>
	<!-- 页面详情 -->
	<div class="panel panel-primary">
	  <div class="panel-heading">
	  	<div class="row">
	  		<h3 class="col-md-2 panel-title">个人中心</h3>
	  	</div>
	  </div>
	  <div class="panel-body ">
			<div class="row">
				<div class="PersonList col-md-3">
					<ul class="list-group">
						<li class="list-group-item"><a href="<{:U('Person/touch')}>">查看联系方式</a></li>
						<li class="list-group-item"><a href="<{:U('Person/addTouch')}>">添加联系方式</a></li>
						<li class="list-group-item"><a href="<{:U('Person/orderList')}>" style="background: #5BC0DE;">查看订单</a></li>
					</ul>
				</div>
				<div class="detail col-md-9">
					<table class="table table-bordered">
						<tr>
							<th>商品名称</th>
							<th>图片</th>
							<th>价格</th>
							<th>数量</th>
							<th>合计</th>
						</tr>

						<volist name='rows' id='row'>
							<tr>
								<td style="line-height: 80px;"><{$row['name']}></td>
								<td ><img src="__PUBLIC__/upload/shop/t_<{$row['img']}>" alt="" style="height:80px;" ></td>
								<td style="line-height: 80px;"><{$row['price']}>元</td>
								<td style="line-height: 80px;"><{$row['number']}></td>
								<td style="line-height: 80px;"><?php echo $row['price']*$row['number']?>元</td>
							</tr>
						</volist>
						<?php
							foreach ($rows as $k => $v) {
							 		$tot+=$v['price']*$v['number'];
							 	}
						?>
						<tr><td colspan="6">总合计<b style="color:red"><{$tot}>元</b></td></tr>
					</table>
					<a href="javascript:" onclick="history.go(-1);" class="btn btn-info">返回</a>
				</div>
			</div>
	  </div>
	</div>
	<!-- 页面详情   结束-->
</block>